package com.xii.eduorder.client;

import com.xii.commonutils.ordervo.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-ucenter")   //被调用的接口
public interface UcenterClient {
    //根据课程id查询课程信息    在这里post和get都可以使用
    @GetMapping("/educenter/ucentermember/getInfoUc/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);
}